-- GENERATED SPELL FOR [Spiritwalker Yona] --


function spell0_32950(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(61924,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32950', 2500, 1)
end

function spell1_32950(pUnit, Event) --@Storm Cloud,n/a--
pUnit:FullCastSpellOnTarget(65123,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32950', 32000, 1)
end

function spell2_32950(pUnit, Event) --@Storm Cloud,n/a--
pUnit:FullCastSpellOnTarget(65133,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32950', 32000, 1)
end

function Sorts_32950(pUnit, Event)
local choix_sorts_32950 = math.random(0, 2)
if choix_sorts_32950 == 0 then
pUnit:RegisterEvent('spell0_32950', 1, 1)
end
if choix_sorts_32950 == 1 then
pUnit:RegisterEvent('spell1_32950', 1, 1)
end
if choix_sorts_32950 == 2 then
pUnit:RegisterEvent('spell2_32950', 1, 1)
end
end

function mob32950_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32950', math.random(1500, 3000), 1)
end

function mob32950_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32950_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32950_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32950, 1, 'mob32950_Action')
RegisterUnitEvent(32950, 2, 'mob32950_Leave')
RegisterUnitEvent(32950, 3, 'mob32950_Kill')
RegisterUnitEvent(32950, 4, 'mob32950_Die')
